<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>选择支付方式</title>
</head>
<body>

<form action="${ctx }/pay/gotoPay" method="post" id="form">
	<input type="hidden" name="payType" id="payType"/>
	<c:forEach items="${parameters }" var="p">
	<input type="hidden" name="${p.key }" value="${p.value }"/>
	</c:forEach>
</form>

<a href="javascript:void(0);" onclick="doSubmit(1)">中金支付</a>

<script type="text/javascript" src="${ctx}/res/js/lib.js"></script>
<script>
	function doSubmit(type) {
		$('#payType').val(type);
		$('#form').submit();
	}
</script>
</body>
</html>